#ifndef WELCOMEPAGE_H
#define WELCOMEPAGE_H

#include <QWidget>
#include "QTimer"
#include <QDir>
#include <QDebug>
#include <QSettings>
#include <QFileInfo>
#include <QFileInfoList>
#include "funcselectpage.h"
#include "measurepage_p1.h"

QT_BEGIN_NAMESPACE
namespace Ui { class WelcomePage; }
QT_END_NAMESPACE
#define GB (1024*1024*1024)
class WelcomePage : public QWidget
{
    Q_OBJECT

public:
    WelcomePage(QWidget *parent = nullptr);
    ~WelcomePage();
    void paintEvent(QPaintEvent *event);
    void setBg();
    quint64 getDiskFreeSpace(QString iDriver);
    bool isFressSpaceEnough();
    QPixmap createQRCode(const QString &text);


private slots:
    void on_pb_exit_clicked();

    void on_pb_enter_clicked();

    void CheckSystemFile();

    void on_pushButton_regist_clicked();

private:
    Ui::WelcomePage *ui;
    QTimer timer;
    int flag;
    int error;
    int m_freeSpace;//剩余磁盘空间
    FuncSelectPage *fsp;

    bool showBtn_enter;
};
#endif // WELCOMEPAGE_H
